#! /bin/bash
echo start generate code
echo $CXX
st_optimizer ./st_file/main.st ./st_file/main.st
iec2c ./st_file/main.st

$CXX -std=gnu++11 -I ./lib/C -c Config0.c -lasiodnp3 -lasiopal -lopendnp3 -lopenpal -w
$CXX -std=gnu++11 -I ./lib/C -c Res0.c -lasiodnp3 -lasiopal -lopendnp3 -lopenpal -w
glue_generator

echo end generate code
